﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    [Table(Tablename = "bill_reshipment")]
    public class BillReshipment: BaseModel
    {
        private Int64 id;

        [Table(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname = "enterprise_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true)]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname = "store_no", Columntype = "varchar", Iscondition = true)]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private String reshipmentno;

        [Table(Columnname = "reshipment_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true)]
        public String Reshipmentno
        {
            get { return reshipmentno; }
            set { reshipmentno = value; }
        }

        private String shipmentno;

        [Table(Columnname = "shipment_no", Columntype="varchar", Iscondition=true)]
        public String Shipmentno
        {
            get { return shipmentno; }
            set { shipmentno = value; }
        }

        private String memberno;

        [Table(Columnname = "member_no", Columntype = "varchar", Iscondition = true)]
        public String Memberno
        {
            get { return memberno; }
            set { memberno = value; }
        }

        private Int32 numbers;

        [Table(Columnname = "numbers", Columntype="int")]
        public Int32 Numbers
        {
            get { return numbers; }
            set { numbers = value; }
        }

        private Decimal goodsTotal;

        [Table(Columnname = "goods_total", Columntype="decimal")]
        public Decimal GoodsTotal
        {
            get { return goodsTotal; }
            set { goodsTotal = value; }
        }

        private Decimal reshipmentTotal;

        [Table(Columnname = "reshipment_total", Columntype = "decimal")]
        public Decimal ReshipmentTotal
        {
            get { return reshipmentTotal; }
            set { reshipmentTotal = value; }
        }

        private Decimal reshipmentPaid;

        [Table(Columnname = "reshipment_paid", Columntype = "decimal")]
        public Decimal ReshipmentPaid
        {
            get { return reshipmentPaid; }
            set { reshipmentPaid = value; }
        }

        private Decimal reshipmentOwe;

        [Table(Columnname = "reshipment_owe", Columntype = "decimal")]
        public Decimal ReshipmentOwe
        {
            get { return reshipmentOwe; }
            set { reshipmentOwe = value; }
        }

        private DateTime reshipmentDate;

        [Table(Columnname = "reshipment_date", Columntype="datetime")]
        public DateTime ReshipmentDate
        {
            get { return reshipmentDate; }
            set { reshipmentDate = value; }
        }

        private String note;

        [Table(Columnname = "note", Columntype = "varchar")]
        public String Note
        {
            get { return note; }
            set { note = value; }
        }

        private String adminUsername;

        [Table(Columnname = "admin_username", Columntype = "varchar", Iscondition = true)]
        public String AdminUsername
        {
            get { return adminUsername; }
            set { adminUsername = value; }
        }

        private String adminName;

        [Table(Columnname = "admin_name", Columntype = "varchar", Iscondition = true)]
        public String AdminName
        {
            get { return adminName; }
            set { adminName = value; }
        }
        
        private DateTime createtime;

        [Table(Columnname = "createtime", Columntype = "datetime")]
        public DateTime Createtime
        {
            get { return createtime; }
            set { createtime = value; }
        }

        private String startDate;

        public String StartDate
        {
            get { return startDate; }
            set { startDate = value; }
        }

        private String endDate;

        public String EndDate
        {
            get { return endDate; }
            set { endDate = value; }
        }
    }
}
